package br.ufpb.di.ppgi.negocio.servicos.login;

import br.ufpb.di.ppgi.util.security.Criptografia;

public class Credencial {
	private String login;
	private String hashedPassword;
	public Credencial() {}

	public Credencial(String login, String plainPassword) {
		setLogin(login);
		setPlainPassword(plainPassword);
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getHashedPassword() {
		return hashedPassword;
	}
	public void setHashedPassword(String password) {
		this.hashedPassword = password;
	}
	public void setPlainPassword(String password) {
		this.hashedPassword = Criptografia.md5Encode(password);
	}
	
}
